package service.financial;

import entity.Bill;
import entity.ResponseMessage;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * @author oahner
 * @create 2022-04-18 9:55
 */
@ResponseBody
@CrossOrigin
public interface FinaBillService {

    /**
     * 获取财务账单列表
     * @param billPage
     * @return
     */
    @RequestMapping("finabill/getFinaBill")
    public ResponseMessage getFinaBill(@RequestBody Map<String,Object> billPage);

    /**
     * 获取最近7天财务账单，渲染折线图
     * @param
     * @return
     */
    @RequestMapping("finabill/getFinaBillInLastW")
    public ResponseMessage getFinaBillInLastW();

    /**
     * 获取上月财务账单，渲染饼图
     * @param
     * @return
     */
    @RequestMapping("finabill/getFinaBillInLastM")
    public ResponseMessage getFinaBillInLastM();

    /**
     * 获取去年财务账单，渲染饼图
     * @param
     * @return
     */
    @RequestMapping("finabill/getFinaBillInLastY")
    public ResponseMessage getFinaBillInLastY();

}
